3.3.62 \(\int \frac {(A+B x) (a+c x^2)^2}{x} \, dx\)

Optimal. Leaf size=53 \[ a^2 A \log (x)+a^2 B x+a A c x^2+\frac {2}{3} a B c x^3+\frac {1}{4} A c^2 x^4+\frac {1}{5} B c^2 x^5 \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {766} \begin {gather*} a^2 A \log (x)+a^2 B x+a A c x^2+\frac {2}{3} a B c x^3+\frac {1}{4} A c^2 x^4+\frac {1}{5} B c^2 x^5 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((A + B*x)*(a + c*x^2)^2)/x,x]

[Out]

a^2*B*x + a*A*c*x^2 + (2*a*B*c*x^3)/3 + (A*c^2*x^4)/4 + (B*c^2*x^5)/5 + a^2*A*Log[x]

Rule 766

Int[((e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(e*x
)^m*(f + g*x)*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, e, f, g, m}, x] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {(A+B x) \left (a+c x^2\right )^2}{x} \, dx &=\int \left (a^2 B+\frac {a^2 A}{x}+2 a A c x+2 a B c x^2+A c^2 x^3+B c^2 x^4\right ) \, dx\\ &=a^2 B x+a A c x^2+\frac {2}{3} a B c x^3+\frac {1}{4} A c^2 x^4+\frac {1}{5} B c^2 x^5+a^2 A \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 53, normalized size = 1.00 \begin {gather*} a^2 A \log (x)+a^2 B x+a A c x^2+\frac {2}{3} a B c x^3+\frac {1}{4} A c^2 x^4+\frac {1}{5} B c^2 x^5 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((A + B*x)*(a + c*x^2)^2)/x,x]

[Out]

a^2*B*x + a*A*c*x^2 + (2*a*B*c*x^3)/3 + (A*c^2*x^4)/4 + (B*c^2*x^5)/5 + a^2*A*Log[x]

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(A+B x) \left (a+c x^2\right )^2}{x} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[((A + B*x)*(a + c*x^2)^2)/x,x]

[Out]

IntegrateAlgebraic[((A + B*x)*(a + c*x^2)^2)/x, x]

________________________________________________________________________________________

fricas [A]  time = 0.39, size = 47, normalized size = 0.89 \begin {gather*} \frac {1}{5} \, B c^{2} x^{5} + \frac {1}{4} \, A c^{2} x^{4} + \frac {2}{3} \, B a c x^{3} + A a c x^{2} + B a^{2} x + A a^{2} \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+a)^2/x,x, algorithm="fricas")

[Out]

1/5*B*c^2*x^5 + 1/4*A*c^2*x^4 + 2/3*B*a*c*x^3 + A*a*c*x^2 + B*a^2*x + A*a^2*log(x)

________________________________________________________________________________________

giac [A]  time = 0.15, size = 48, normalized size = 0.91 \begin {gather*} \frac {1}{5} \, B c^{2} x^{5} + \frac {1}{4} \, A c^{2} x^{4} + \frac {2}{3} \, B a c x^{3} + A a c x^{2} + B a^{2} x + A a^{2} \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+a)^2/x,x, algorithm="giac")

[Out]

1/5*B*c^2*x^5 + 1/4*A*c^2*x^4 + 2/3*B*a*c*x^3 + A*a*c*x^2 + B*a^2*x + A*a^2*log(abs(x))

________________________________________________________________________________________

maple [A]  time = 0.05, size = 48, normalized size = 0.91 \begin {gather*} \frac {B \,c^{2} x^{5}}{5}+\frac {A \,c^{2} x^{4}}{4}+\frac {2 B a c \,x^{3}}{3}+A a c \,x^{2}+A \,a^{2} \ln \relax (x )+B \,a^{2} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(c*x^2+a)^2/x,x)

[Out]

B*a^2*x+a*A*c*x^2+2/3*a*B*c*x^3+1/4*A*c^2*x^4+1/5*B*c^2*x^5+A*a^2*ln(x)

________________________________________________________________________________________

maxima [A]  time = 0.56, size = 47, normalized size = 0.89 \begin {gather*} \frac {1}{5} \, B c^{2} x^{5} + \frac {1}{4} \, A c^{2} x^{4} + \frac {2}{3} \, B a c x^{3} + A a c x^{2} + B a^{2} x + A a^{2} \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+a)^2/x,x, algorithm="maxima")

[Out]

1/5*B*c^2*x^5 + 1/4*A*c^2*x^4 + 2/3*B*a*c*x^3 + A*a*c*x^2 + B*a^2*x + A*a^2*log(x)

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 47, normalized size = 0.89 \begin {gather*} \frac {A\,c^2\,x^4}{4}+\frac {B\,c^2\,x^5}{5}+A\,a^2\,\ln \relax (x)+B\,a^2\,x+A\,a\,c\,x^2+\frac {2\,B\,a\,c\,x^3}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + c*x^2)^2*(A + B*x))/x,x)

[Out]

(A*c^2*x^4)/4 + (B*c^2*x^5)/5 + A*a^2*log(x) + B*a^2*x + A*a*c*x^2 + (2*B*a*c*x^3)/3

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 54, normalized size = 1.02 \begin {gather*} A a^{2} \log {\relax (x )} + A a c x^{2} + \frac {A c^{2} x^{4}}{4} + B a^{2} x + \frac {2 B a c x^{3}}{3} + \frac {B c^{2} x^{5}}{5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x**2+a)**2/x,x)

[Out]

A*a**2*log(x) + A*a*c*x**2 + A*c**2*x**4/4 + B*a**2*x + 2*B*a*c*x**3/3 + B*c**2*x**5/5

________________________________________________________________________________________